package com.powernode.money.vo;

import java.io.Serializable;

public class TopRank implements Serializable{
    private String phone;
    private double money;

    @Override
    public String toString() {
        return "TopRank{" +
                "phone='" + phone + '\'' +
                ", money=" + money +
                '}';
    }

    public String getPhone() {
            return phone;
    }
    public String getPhoneAbs() {
        if(phone!=null && phone.length()==11){
            return phone.substring(0,3)+"******"+phone.substring(9,11);
        }else{
            return phone;
        }
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public TopRank(String phone, double money) {
        this.phone = phone;
        this.money = money;
    }

    public TopRank() {
    }
}
